<%="查看(#{@photo.view_count}) | 评论(#{@photo.comments.size})" %>
<%@comments.each do |comment|%>
  <table width=600 >
    <tr>
      <td width=80%><b><%= comment.name %>:</b></td>
      <%if session[:user]%>
        <td  width=20%>
          <%=link_to_remote "删除", 
          :url=>{:controller=>"/admin/album", 
            :action=>"delete_comment",
            :id=>comment.id}, :method=>:post%>
        </td>
      <%end%>
    </tr>
    <tr>
      <td><%=comment.content %></td>
    </tr>
  </table>
<%end%>
<%=will_paginate @comments,
:remote_options =>{:url=>{:controller=>"/admin/album",
    :action=>'list_comments',:photo_id=>@photo.id},:method =>:post} %>